repo/commit: In the expected checksum case, check existence early
authorColin Walters <walters@verbum.org>
Tue, 23 May 2017 19:04:50 +0000 (15:04 -0400)
committerAtomic Bot <atomic-devel@projectatomic.io>
Thu, 1 Jun 2017 18:43:38 +0000 (18:43 +0000)
commit6ba4dac6f21f5e613022e3bcce5635668735a4fa
treee1391956d1d0bfa231b9f7a239db31de986a80aa
parentd2a92df1552c979a562ce6c7a69a9fe0da08e55c
repo/commit: In the expected checksum case, check existence early

If we have an expected checksum, call `fstatat(repo_dfd, checksum)`
early on before we do much else.  This actually duplicates code,
but future work here is going to split up the metadata/content
commit paths, so they'll need to diverge anyways.

Closes: #881
Approved by: jlebon
src/libostree/ostree-repo-commit.c